<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateWebContentTable extends Migration
{
    /**
     * Run the migrations.
     * 内容管理图片表
     * @return void
     */
    public function up()
    {
        Schema::create('web_content_img_exist', function (Blueprint $table) {
            $table->engine='MyISAM';
            $table->comment='内容管理图片表';
            $table->increments('id')->unsigned()->comment('自动增长主键');
            $table->integer('news_id')->unsigned()->comment('新闻id');
            $table->string('img_url',100)->default('')->comment('文件路径名');
            $table->tinyInteger('img_state')->unsigned()->default(0)->comment('状态');
            $table->string('img_tag',40)->default('')->comment('跟踪用户的标记');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
        Schema::drop('web_content_img_exist');
    }
}
